/* eslint @typescript-eslint/no-loss-of-precision: 0 */
// I want to reformat these arrays as tables but I have no idea how
// to do it automatically, and I'm sure not doing it manually.

var validSignal = new Float32Array([
  0.210053,
  0.177877,
  0.164105,
  0.174483,
  0.198507,
  0.20863,
  0.185864,
  0.149152,
  0.134373,
  0.150244,
  0.175646,
  0.185254,
  0.167029,
  0.134828,
  0.120649,
  0.135059,
  0.152342,
  0.146518,
  0.117914,
  0.0850726,
  0.0711188,
  0.0831116,
  0.0956098,
  0.0790327,
  0.0386703,
  0.00368093,
  -0.00425037,
  0.01758,
  0.0456599,
  0.0422213,
  0.0018336,
  -0.0355098,
  -0.0354277,
  -0.00522628,
  0.0238358,
  0.0238101,
  -0.00896865,
  -0.0435429,
  -0.0451826,
  -0.0192383,
  -0.000213783,
  -0.0072255,
  -0.0326651,
  -0.0559957,
  -0.0555821,
  -0.0307709,
  -0.0120282,
  -0.0235698,
  -0.0497144,
  -0.0602726,
  -0.0456664,
  -0.0148111,
  0.0133652,
  0.0170683,
  -0.00243172,
  -0.0136483,
  0.00683369,
  0.0461872,
  0.0739733,
  0.0715558,
  0.0445791,
  0.0201561,
  0.0230904,
  0.0475926,
  0.0640758,
  0.0537718,
  0.0257536,
  0.00576359,
  0.0137561,
  0.042704,
  0.0628399,
  0.0573935,
  0.0416932,
  0.0383675,
  0.0519358,
  0.0709064,
  0.0770058,
  0.0582382,
  0.0266868,
  0.00986234,
  0.0160813,
  0.0258315,
  0.019729,
  -0.00208688,
  -0.0258508,
  -0.0354935,
  -0.0237033,
  -0.00151217,
  0.0104479,
  0.00505008,
  -0.00615324,
  -0.0103148,
  -0.00378875,
  0.0100817,
  0.0210761,
  0.0179143,
  0.00375283,
  -0.00439698,
  0.00246343,
  0.0155962,
  0.0232143,
  0.0230499,
  0.0195738,
  0.0194644,
  0.0281883,
  0.0424282,
  0.0505708,
  0.0459622,
  0.0333743,
  0.0229521,
  0.0232969,
  0.0337038,
  0.0411679,
  0.034791,
  0.0200176,
  0.0104787,
  0.0125863,
  0.0219084,
  0.0288187,
  0.0271796,
  0.0185851,
  0.00814602,
  0.00010769,
  -0.00410729,
  -0.00845905,
  -0.0181532,
  -0.0315387,
  -0.0425157,
  -0.0485562,
  -0.0509943,
  -0.0525175,
  -0.0569078,
  -0.0648728,
  -0.0707186,
  -0.0692475,
  -0.0636362,
  -0.061308,
  -0.0663872,
  -0.0786958,
  -0.0932887,
  -0.101306,
  -0.099305,
  -0.0946008,
  -0.0954661,
  -0.102402,
  -0.110466,
  -0.112303,
  -0.102428,
  -0.0862367,
  -0.0770018,
  -0.0791694,
  -0.0844438,
  -0.0842266,
  -0.0770584,
  -0.0681956,
  -0.0662046,
  -0.0726287,
  -0.0776818,
  -0.0738193,
  -0.0649626,
  -0.0572661,
  -0.0527713,
  -0.0523181,
  -0.0530069,
  -0.0482611,
  -0.0390906,
  -0.0356254,
  -0.043084,
  -0.0567773,
  -0.0695831,
  -0.0758914,
  -0.0746767,
  -0.0730654,
  -0.0784022,
  -0.0882514,
  -0.0957163,
  -0.0974575,
  -0.0924076,
  -0.0829959,
  -0.0774842,
  -0.0811269,
  -0.0894263,
  -0.0964565,
  -0.101951,
  -0.10749,
  -0.113172,
  -0.11888,
  -0.12452,
  -0.128645,
  -0.128639,
  -0.124067,
  -0.118649,
  -0.115934,
  -0.114884,
  -0.112186,
  -0.106954,
  -0.10164,
  -0.0997993,
  -0.10383,
  -0.113101,
  -0.121923,
  -0.123055,
  -0.117317,
  -0.113413,
  -0.114568,
  -0.115077,
  -0.111366,
  -0.104934,
  -0.0965366,
  -0.0884383,
  -0.0869267,
  -0.0935031,
  -0.100325,
  -0.1003,
  -0.0952662,
  -0.0916667,
  -0.0937288,
  -0.100514,
  -0.105195,
  -0.0995115,
  -0.0825775,
  -0.0635737,
  -0.0538227,
  -0.0558786,
  -0.0608032,
  -0.0585483,
  -0.0496366,
  -0.0427656,
  -0.0445796,
  -0.055052,
  -0.0673823,
  -0.0719562,
  -0.0654653,
  -0.0541091,
  -0.0467475,
  -0.0468283,
  -0.0487808,
  -0.0425466,
  -0.0265339,
  -0.0126342,
  -0.0123718,
  -0.022114,
  -0.0286979,
  -0.0256131,
  -0.0160068,
  -0.00526088,
  0.00134264,
  0.00154443,
  0.00483469,
  0.0256667,
  0.0613991,
  0.092394,
  0.107694,
  0.11447,
  0.122727,
  0.136071,
  0.153204,
  0.166608,
  0.165065,
  0.148037,
  0.132945,
  0.137259,
  0.155005,
  0.165077,
  0.161352,
  0.156986,
  0.163093,
  0.180532,
  0.204865,
  0.225191,
  0.22949,
  0.219644,
  0.211666,
  0.218466,
  0.236073,
  0.24553,
  0.232326,
  0.204887,
  0.184331,
  0.18092,
  0.190672,
  0.202115,
  0.198955,
  0.174898,
  0.148543,
  0.144139,
  0.160337,
  0.174553,
  0.171143,
  0.152899,
  0.13376,
  0.128038,
  0.136623,
  0.14159,
  0.126432,
  0.0983383,
  0.0779321,
  0.0740726,
  0.0785174,
  0.0754532,
  0.0533432,
  0.0185456,
  -0.0056379,
  -0.00360204,
  0.0148392,
  0.0257646,
  0.0124646,
  -0.0202455,
  -0.045171,
  -0.0377004,
  -0.00770286,
  0.0103068,
  -0.000772779,
  -0.0270371,
  -0.0454872,
  -0.0421428,
  -0.0207754,
  -0.00473425,
  -0.0142364,
  -0.0405185,
  -0.05827,
  -0.0555856,
  -0.0394355,
  -0.0266644,
  -0.0340385,
  -0.0585364,
  -0.0723941,
  -0.0558309,
  -0.0223699,
  0.000482343,
  -0.000267456,
  -0.0157868,
  -0.0208784,
  0.00474627,
  0.0481501,
  0.0719419,
  0.0588237,
  0.0288848,
  0.0127234,
  0.0246608,
  0.0537408,
  0.068271,
  0.0467811,
  0.00954849,
  -0.00377789,
  0.0171299,
  0.0491611,
  0.0652267,
  0.0543435,
  0.0320568,
  0.029578,
  0.055131,
  0.0812543,
  0.0806456,
  0.053999,
  0.02228,
  0.00938343,
  0.0222486,
  0.0382825,
  0.029001,
  -0.00349459,
  -0.0316094,
  -0.0354257,
  -0.0158886,
  0.0105391,
  0.0209381,
  0.00657669,
  -0.0131035,
  -0.0128786,
  0.00808002,
  0.0303607,
  0.0363252,
  0.0222121,
  0.001955,
  -0.00275888,
  0.0130369,
  0.030836,
  0.0319413,
  0.0178758,
  0.00550592,
  0.00869962,
  0.0255403,
  0.0408193,
  0.0401646,
  0.0234699,
  0.00582221,
  0.00269674,
  0.0140874,
  0.0254329,
  0.0224041,
  0.00511699,
  -0.0106915,
  -0.0105429,
  0.00252097,
  0.0139908,
  0.0140592,
  0.00385489,
  -0.00722043,
  -0.0103427,
  -0.00763009,
  -0.00922786,
  -0.0203442,
  -0.0365691,
  -0.0497839,
  -0.0555759,
  -0.0560929,
  -0.0562996,
  -0.0596174,
  -0.0667598,
  -0.073583,
  -0.0731928,
  -0.0655504,
  -0.0591449,
  -0.0604797,
  -0.0693413,
  -0.0823657,
  -0.0935218,
  -0.0965494,
  -0.0934511,
  -0.0935731,
  -0.100812,
  -0.109499,
  -0.112634,
  -0.106653,
  -0.0922115,
  -0.077002,
  -0.0707268,
  -0.0726923,
  -0.0726287,
  -0.0650586,
  -0.0546635,
  -0.0487427,
  -0.0508422,
  -0.0580151,
  -0.06137,
  -0.0552217,
  -0.0449878,
  -0.0395081,
  -0.0399968,
  -0.0416351,
  -0.0398412,
  -0.0330693,
  -0.0251293,
  -0.0237558,
  -0.0330045,
  -0.0491153,
  -0.0640765,
  -0.0713467,
  -0.0711243,
  -0.0715761,
  -0.0805191,
  -0.0952137,
  -0.104761,
  -0.102692,
  -0.0936894,
  -0.0871804,
  -0.0876623,
  -0.0931927,
  -0.0993491,
  -0.102432,
  -0.103029,
  -0.106451,
  -0.115241,
  -0.124862,
  -0.129781,
  -0.128199,
  -0.121359,
  -0.11399,
  -0.11134,
  -0.111923,
  -0.10881,
  -0.0990765,
  -0.0871665,
  -0.0797417,
  -0.0802897,
  -0.0872773,
  -0.0951172,
  -0.0974329,
  -0.0925392,
  -0.0862979,
  -0.0854679,
  -0.0884219,
  -0.0882209,
  -0.0827227,
  -0.0746967,
  -0.066372,
  -0.0607307,
  -0.0619048,
  -0.0687389,
  -0.0749493,
  -0.0774976,
  -0.0776059,
  -0.0767834,
  -0.0784744,
  -0.0856714,
  -0.0927187,
  -0.0899654,
  -0.0773404,
  -0.0639323,
  -0.0570897,
  -0.0585352,
  -0.0654574,
  -0.0704296,
  -0.0670013,
  -0.0595495,
  -0.0602296,
  -0.0729674,
  -0.0877086,
  -0.0920242,
  -0.0831493,
  -0.0688663,
  -0.0591427,
]);

var validAmpSpec = new Float32Array([
  0.19665084779262543,
  0.2347041368484497,
  0.8820229172706604,
  0.24657772481441498,
  0.5405293107032776,
  0.1720474362373352,
  0.4865507185459137,
  0.10723359882831573,
  0.21100476384162903,
  0.2224891483783722,
  0.2123824954032898,
  0.2276570349931717,
  0.12126567959785461,
  0.066037617623806,
  0.0979113057255745,
  0.05718739330768585,
  0.06418971717357635,
  0.07439148426055908,
  0.059811681509017944,
  0.05451417341828346,
  0.04494194686412811,
  0.053511425852775574,
  0.028220178559422493,
  0.0508715994656086,
  0.027684783563017845,
  0.055125508457422256,
  0.07665202021598816,
  0.024500979110598564,
  0.07082470506429672,
  0.04819667339324951,
  0.033702537417411804,
  0.04822755232453346,
  0.029374826699495316,
  0.04507448524236679,
  0.060386642813682556,
  0.10165651887655258,
  0.03139510378241539,
  0.047015901654958725,
  0.025697000324726105,
  0.028244679793715477,
  0.02587614394724369,
  0.025666840374469757,
  0.024105869233608246,
  0.023856936022639275,
  0.02298814244568348,
  0.022686418145895004,
  0.022146806120872498,
  0.021367959678173065,
  0.021091477945446968,
  0.02044217474758625,
  0.019870873540639877,
  0.01956181973218918,
  0.019178330898284912,
  0.01895197108387947,
  0.018175866454839706,
  0.018201783299446106,
  0.017440032213926315,
  0.019627967849373817,
  0.016084877774119377,
  0.015716033056378365,
  0.01793968863785267,
  0.018144676461815834,
  0.015560757368803024,
  0.015966320410370827,
  0.015865841880440712,
  0.01724650338292122,
  0.02212366834282875,
  0.01283203810453415,
  0.002370527945458889,
  0.020350787788629532,
  0.004152496345341206,
  0.01835423894226551,
  0.017795231193304062,
  0.015214941464364529,
  0.01477932371199131,
  0.012785752303898335,
  0.01735319010913372,
  0.014473535120487213,
  0.01173403486609459,
  0.012687225826084614,
  0.010277103632688522,
  0.008647308684885502,
  0.004186284728348255,
  0.013694271445274353,
  0.021512459963560104,
  0.13956978917121887,
  0.03825224190950394,
  0.10673661530017853,
  0.017183126881718636,
  0.05120223015546799,
  0.04658796265721321,
  0.01062155794352293,
  0.015622202306985855,
  0.017075074836611748,
  0.01364621426910162,
  0.015216752886772156,
  0.019511371850967407,
  0.011106664314866066,
  0.014739356935024261,
  0.010785780847072601,
  0.009001226164400578,
  0.010783134028315544,
  0.012424162589013577,
  0.01052388921380043,
  0.015232899226248264,
  0.012698809616267681,
  0.01273293700069189,
  0.013579973950982094,
  0.010236277244985104,
  0.012397444806993008,
  0.009453014470636845,
  0.010430392809212208,
  0.011005212552845478,
  0.009151102975010872,
  0.012203438207507133,
  0.009068693034350872,
  0.009711087681353092,
  0.008781732991337776,
  0.008229474537074566,
  0.010262145660817623,
  0.010236688889563084,
  0.010204239748418331,
  0.008296496234834194,
  0.010923029854893684,
  0.00945588294416666,
  0.011303017847239971,
  0.00820787250995636,
  0.012193659320473671,
  0.006696794647723436,
  0.012072503566741943,
  0.006136278621852398,
  0.009859058074653149,
  0.008026177063584328,
  0.009486223571002483,
  0.008378936909139156,
  0.010838311165571213,
  0.009234151802957058,
  0.010003417730331421,
  0.0069491127505898476,
  0.0085842190310359,
  0.008667370304465294,
  0.009399629198014736,
  0.00894227996468544,
  0.007868955843150616,
  0.00740796560421586,
  0.008399457670748234,
  0.009870490059256554,
  0.01123284175992012,
  0.005783144850283861,
  0.00897462759166956,
  0.0062180436216294765,
  0.0034215368796139956,
  0.0074971625581383705,
  0.006735298316925764,
  0.006660213693976402,
  0.007263282313942909,
  0.008068612776696682,
  0.007176463026553392,
  0.007691658101975918,
  0.00771364476531744,
  0.007871231064200401,
  0.007622267585247755,
  0.00793878547847271,
  0.007455659564584494,
  0.00759520661085844,
  0.00735881645232439,
  0.007547167595475912,
  0.007401882670819759,
  0.007520320825278759,
  0.007383257150650024,
  0.0073102377355098724,
  0.007291282992810011,
  0.007268768269568682,
  0.0071226442232728004,
  0.007194608449935913,
  0.0072617256082594395,
  0.007123888004571199,
  0.007138390094041824,
  0.007114463020116091,
  0.0071001239120960236,
  0.007095871493220329,
  0.007049843668937683,
  0.007028147112578154,
  0.007019645534455776,
  0.006987142376601696,
  0.006965840235352516,
  0.006965469568967819,
  0.006934246979653835,
  0.006920137442648411,
  0.006895418278872967,
  0.006881091743707657,
  0.006860425230115652,
  0.006845660042017698,
  0.006826385855674744,
  0.006810335908085108,
  0.006792010739445686,
  0.006778267677873373,
  0.0067602782510221004,
  0.006741780322045088,
  0.006730182096362114,
  0.006709547247737646,
  0.006696504540741444,
  0.0066810110583901405,
  0.0066679697483778,
  0.0066535272635519505,
  0.006640746723860502,
  0.006627073045819998,
  0.006614472717046738,
  0.006601832341402769,
  0.006589086726307869,
  0.006576948799192905,
  0.0065663158893585205,
  0.006554600782692432,
  0.006542955990880728,
  0.006531682796776295,
  0.006521271541714668,
  0.006511314772069454,
  0.006501263007521629,
  0.006491524633020163,
  0.0064818719401955605,
  0.006473584100604057,
  0.006464917212724686,
  0.006453651934862137,
  0.006447129882872105,
  0.006438340060412884,
  0.006433091592043638,
  0.006421483587473631,
  0.006416960619390011,
  0.006405588239431381,
  0.0064027863554656506,
  0.006392698269337416,
  0.00638605048879981,
  0.006379866506904364,
  0.006380920764058828,
  0.006368506699800491,
  0.006370063871145248,
  0.006358082871884108,
  0.006360414903610945,
  0.006350744981318712,
  0.006349365226924419,
  0.006344451103359461,
  0.006340163294225931,
  0.006336219608783722,
  0.006333556957542896,
  0.0063298651948571205,
  0.006326799280941486,
  0.0063240863382816315,
  0.006322585511952639,
  0.006320611108094454,
  0.006318414118140936,
  0.006317055318504572,
  0.006315510254353285,
  0.006314756814390421,
  0.0063149346970021725,
  0.006312258541584015,
  0.00631281454116106,
]);

var validFFT = {
  real: new Float32Array([
    -0.19665084779262543,
    -0.19752468168735504,
    0.36683952808380127,
    -0.2433284968137741,
    0.48324400186538696,
    -0.05727904662489891,
    0.2585470974445343,
    0.10665424913167953,
    0.07199767976999283,
    0.22096122801303864,
    -0.07637365162372589,
    -0.15345974266529083,
    0.0073951175436377525,
    0.018520567566156387,
    0.02713807113468647,
    0.029163897037506104,
    0.03566587343811989,
    -0.044555239379405975,
    0.011641419492661953,
    -0.006447592284530401,
    0.011403278447687626,
    -0.009334547445178032,
    -0.0047442726790905,
    -0.008093228563666344,
    -0.019951220601797104,
    -0.018373994156718254,
    0.07639355957508087,
    -0.011358998715877533,
    0.03888266533613205,
    0.0034968173131346703,
    0.0070980144664645195,
    -0.02688266895711422,
    0.025376001372933388,
    -0.043581705540418625,
    0.03376776725053787,
    -0.003065094817429781,
    0.020791348069906235,
    0.016667073592543602,
    0.013580083847045898,
    0.010121488012373447,
    0.011874902062118053,
    0.009539823047816753,
    0.00959095824509859,
    0.009431146085262299,
    0.009135594591498375,
    0.009086290374398232,
    0.008232609368860722,
    0.007974330335855484,
    0.007991848513484001,
    0.007485880516469479,
    0.00723373144865036,
    0.007032811176031828,
    0.006953357253223658,
    0.006927272770553827,
    0.006759696640074253,
    0.0064453016966581345,
    0.006554528139531612,
    0.008652739226818085,
    0.004625708796083927,
    0.005859009455889463,
    0.006949464790523052,
    -0.003223725827410817,
    0.0045992592349648476,
    0.002923077903687954,
    0.002486512530595064,
    0.0005761167849414051,
    -0.0026042622048407793,
    0.006519898306578398,
    -0.0022269380278885365,
    0.016397951170802116,
    0.0001522246457170695,
    0.011844188906252384,
    0.012074699625372887,
    0.003284972859546542,
    0.011473655700683594,
    0.0020412669982761145,
    0.014012168161571026,
    0.007358142640441656,
    0.007261600811034441,
    0.0038233932573348284,
    0.007721417583525181,
    0.004036695696413517,
    0.0006298600928857923,
    -0.010049507953226566,
    0.0010332296369597316,
    -0.07787133753299713,
    0.02331184409558773,
    0.08912429958581924,
    0.01535407267510891,
    0.041799306869506836,
    0.04321489855647087,
    0.007313059642910957,
    0.010057803243398666,
    0.01242067851126194,
    0.009817083366215229,
    0.010617588646709919,
    0.01676148921251297,
    0.002485822420567274,
    0.0026900183875113726,
    0.008226996287703514,
    0.007060603704303503,
    0.0077970316633582115,
    0.009426608681678772,
    0.007362358272075653,
    0.0091349883005023,
    0.00871466938406229,
    0.0077154794707894325,
    0.009411475621163845,
    0.00595090864226222,
    0.009597858414053917,
    0.005629582796245813,
    0.004851765930652618,
    0.006783735007047653,
    0.006945793516933918,
    0.008454684168100357,
    0.005890170112252235,
    0.0053056590259075165,
    0.006906349211931229,
    0.005137230269610882,
    0.007416581269353628,
    0.006845252122730017,
    0.006610281765460968,
    0.0056885299272835255,
    0.008585539646446705,
    0.006960442289710045,
    0.008162051439285278,
    0.005645608529448509,
    0.00855440367013216,
    0.0040309131145477295,
    0.008840540423989296,
    0.003720984561368823,
    0.006988272536545992,
    0.006515841465443373,
    0.007293523754924536,
    0.006819248199462891,
    0.006574138533324003,
    0.006817225366830826,
    0.007057804148644209,
    0.004834975115954876,
    0.007327443920075893,
    0.007043471559882164,
    0.008074653334915638,
    0.0069845858961343765,
    0.006871236953884363,
    0.006475189700722694,
    0.007664144970476627,
    0.006187759805470705,
    0.00864401925355196,
    0.004271855112165213,
    0.004158757161349058,
    0.005097470711916685,
    0.003043494187295437,
    0.005848107393831015,
    0.005845715757459402,
    0.006285677198320627,
    0.0064400541596114635,
    0.007056203670799732,
    0.006167156621813774,
    0.00666792131960392,
    0.006738143041729927,
    0.007025711704045534,
    0.006782619282603264,
    0.006766937207430601,
    0.006693252827972174,
    0.006672648712992668,
    0.006510886363685131,
    0.006521802861243486,
    0.00646448228508234,
    0.006618787534534931,
    0.006626246031373739,
    0.006372587755322456,
    0.006422026548534632,
    0.006534790154546499,
    0.00639765989035368,
    0.006459202151745558,
    0.006494620349258184,
    0.006421111524105072,
    0.006446992978453636,
    0.006438942160457373,
    0.006432001944631338,
    0.006441065110266209,
    0.006432574242353439,
    0.00641908822581172,
    0.006432970520108938,
    0.0064155892468988895,
    0.0064157661981880665,
    0.006421670317649841,
    0.006413833238184452,
    0.006415552459657192,
    0.006406727246940136,
    0.006407492328435183,
    0.006402577273547649,
    0.006401305086910725,
    0.006397162098437548,
    0.006395534612238407,
    0.006390783935785294,
    0.006391157396137714,
    0.0063867466524243355,
    0.006378623656928539,
    0.006381320301443338,
    0.006373580079525709,
    0.006372799631208181,
    0.006369728595018387,
    0.006369008217006922,
    0.006365716923028231,
    0.006364297121763229,
    0.006361851468682289,
    0.006360107567161322,
    0.006357864011079073,
    0.006355467718094587,
    0.006353544071316719,
    0.006352653261274099,
    0.006350608076900244,
    0.0063482532277703285,
    0.006346206180751324,
    0.006344705354422331,
    0.006343318149447441,
    0.006341894157230854,
    0.006340099964290857,
    0.006338686216622591,
    0.006337993778288364,
    0.006337002385407686,
    0.006332934368401766,
    0.006333628669381142,
    0.006331718526780605,
    0.006332730874419212,
    0.006327662616968155,
    0.0063288332894444466,
    0.00632462790235877,
    0.006326642353087664,
    0.006322877481579781,
    0.006321584805846214,
    0.006320431362837553,
    0.006325934082269669,
    0.00631851376965642,
    0.006324665620923042,
    0.006316954270005226,
    0.0063230418600142,
    0.006317440420389175,
    0.006319508887827396,
    0.006318141706287861,
    0.006316909100860357,
    0.00631600059568882,
    0.0063161407597362995,
    0.006314966361969709,
    0.006314364727586508,
    0.006313743535429239,
    0.006314222235232592,
    0.00631408067420125,
    0.006313348188996315,
    0.006313388701528311,
    0.0063129388727247715,
    0.006313106510788202,
    0.006314004771411419,
    0.006311849225312471,
    0.006312710233032703,
    0.00631279731169343,
    0.006312710233032703,
    0.006311849225312471,
    0.006314004771411419,
    0.006313106510788202,
    0.0063129388727247715,
    0.006313388701528311,
    0.006313348188996315,
    0.00631408067420125,
    0.006314222235232592,
    0.006313743535429239,
    0.006314364727586508,
    0.006314966361969709,
    0.0063161407597362995,
    0.00631600059568882,
    0.006316909100860357,
    0.006318141706287861,
    0.006319508887827396,
    0.006317440420389175,
    0.0063230418600142,
    0.006316954270005226,
    0.006324665620923042,
    0.00631851376965642,
    0.006325934082269669,
    0.006320431362837553,
    0.006321584805846214,
    0.006322877481579781,
    0.006326642353087664,
    0.00632462790235877,
    0.0063288332894444466,
    0.006327662616968155,
    0.006332730874419212,
    0.006331718526780605,
    0.006333628669381142,
    0.006332934368401766,
    0.006337002385407686,
    0.006337993778288364,
    0.006338686216622591,
    0.006340099964290857,
    0.006341894157230854,
    0.006343318149447441,
    0.006344705354422331,
    0.006346206180751324,
    0.0063482532277703285,
    0.006350608076900244,
    0.006352653261274099,
    0.006353544071316719,
    0.006355467718094587,
    0.006357864011079073,
    0.006360107567161322,
    0.006361851468682289,
    0.006364297121763229,
    0.006365716923028231,
    0.006369008217006922,
    0.006369728595018387,
    0.006372799631208181,
    0.006373580079525709,
    0.006381320301443338,
    0.006378623656928539,
    0.0063867466524243355,
    0.006391157396137714,
    0.006390783935785294,
    0.006395534612238407,
    0.006397162098437548,
    0.006401305086910725,
    0.006402577273547649,
    0.006407492328435183,
    0.006406727246940136,
    0.006415552459657192,
    0.006413833238184452,
    0.006421670317649841,
    0.0064157661981880665,
    0.0064155892468988895,
    0.006432970520108938,
    0.00641908822581172,
    0.006432574242353439,
    0.006441065110266209,
    0.006432001944631338,
    0.006438942160457373,
    0.006446992978453636,
    0.006421111524105072,
    0.006494620349258184,
    0.006459202151745558,
    0.00639765989035368,
    0.006534790154546499,
    0.006422026548534632,
    0.006372587755322456,
    0.006626246031373739,
    0.006618787534534931,
    0.00646448228508234,
    0.006521802861243486,
    0.006510886363685131,
    0.006672648712992668,
    0.006693252827972174,
    0.006766937207430601,
    0.006782619282603264,
    0.007025711704045534,
    0.006738143041729927,
    0.00666792131960392,
    0.006167156621813774,
    0.007056203670799732,
    0.0064400541596114635,
    0.006285677198320627,
    0.005845715757459402,
    0.005848107393831015,
    0.003043494187295437,
    0.005097470711916685,
    0.004158757161349058,
    0.004271855112165213,
    0.00864401925355196,
    0.006187759805470705,
    0.007664144970476627,
    0.006475189700722694,
    0.006871236953884363,
    0.0069845858961343765,
    0.008074653334915638,
    0.007043471559882164,
    0.007327443920075893,
    0.004834975115954876,
    0.007057804148644209,
    0.006817225366830826,
    0.006574138533324003,
    0.006819248199462891,
    0.007293523754924536,
    0.006515841465443373,
    0.006988272536545992,
    0.003720984561368823,
    0.008840540423989296,
    0.0040309131145477295,
    0.00855440367013216,
    0.005645608529448509,
    0.008162051439285278,
    0.006960442289710045,
    0.008585539646446705,
    0.0056885299272835255,
    0.006610281765460968,
    0.006845252122730017,
    0.007416581269353628,
    0.005137230269610882,
    0.006906349211931229,
    0.0053056590259075165,
    0.005890170112252235,
    0.008454684168100357,
    0.006945793516933918,
    0.006783735007047653,
    0.004851765930652618,
    0.005629582796245813,
    0.009597858414053917,
    0.00595090864226222,
    0.009411475621163845,
    0.0077154794707894325,
    0.00871466938406229,
    0.0091349883005023,
    0.007362358272075653,
    0.009426608681678772,
    0.0077970316633582115,
    0.007060603704303503,
    0.008226996287703514,
    0.0026900183875113726,
    0.002485822420567274,
    0.01676148921251297,
    0.010617588646709919,
    0.009817083366215229,
    0.01242067851126194,
    0.010057803243398666,
    0.007313059642910957,
    0.04321489855647087,
    0.041799306869506836,
    0.01535407267510891,
    0.08912429958581924,
    0.02331184409558773,
    -0.07787133753299713,
    0.0010332296369597316,
    -0.010049507953226566,
    0.0006298600928857923,
    0.004036695696413517,
    0.007721417583525181,
    0.0038233932573348284,
    0.007261600811034441,
    0.007358142640441656,
    0.014012168161571026,
    0.0020412669982761145,
    0.011473655700683594,
    0.003284972859546542,
    0.012074699625372887,
    0.011844188906252384,
    0.0001522246457170695,
    0.016397951170802116,
    -0.0022269380278885365,
    0.006519898306578398,
    -0.0026042622048407793,
    0.0005761167849414051,
    0.002486512530595064,
    0.002923077903687954,
    0.0045992592349648476,
    -0.003223725827410817,
    0.006949464790523052,
    0.005859009455889463,
    0.004625708796083927,
    0.008652739226818085,
    0.006554528139531612,
    0.0064453016966581345,
    0.006759696640074253,
    0.006927272770553827,
    0.006953357253223658,
    0.007032811176031828,
    0.00723373144865036,
    0.007485880516469479,
    0.007991848513484001,
    0.007974330335855484,
    0.008232609368860722,
    0.009086290374398232,
    0.009135594591498375,
    0.009431146085262299,
    0.00959095824509859,
    0.009539823047816753,
    0.011874902062118053,
    0.010121488012373447,
    0.013580083847045898,
    0.016667073592543602,
    0.020791348069906235,
    -0.003065094817429781,
    0.03376776725053787,
    -0.043581705540418625,
    0.025376001372933388,
    -0.02688266895711422,
    0.0070980144664645195,
    0.0034968173131346703,
    0.03888266533613205,
    -0.011358998715877533,
    0.07639355957508087,
    -0.018373994156718254,
    -0.019951220601797104,
    -0.008093228563666344,
    -0.0047442726790905,
    -0.009334547445178032,
    0.011403278447687626,
    -0.006447592284530401,
    0.011641419492661953,
    -0.044555239379405975,
    0.03566587343811989,
    0.029163897037506104,
    0.02713807113468647,
    0.018520567566156387,
    0.0073951175436377525,
    -0.15345974266529083,
    -0.07637365162372589,
    0.22096122801303864,
    0.07199767976999283,
    0.10665424913167953,
    0.2585470974445343,
    -0.05727904662489891,
    0.48324400186538696,
    -0.2433284968137741,
    0.36683952808380127,
    -0.19752468168735504,
  ]),
  imag: new Float32Array([
    0,
    -0.12676763534545898,
    0.8021179437637329,
    -0.039897620677948,
    0.2421717494726181,
    -0.1622326523065567,
    0.41217106580734253,
    -0.01113172434270382,
    0.1983414888381958,
    0.02602989412844181,
    0.19817514717578888,
    0.16816014051437378,
    0.121039979159832,
    0.06338734179735184,
    0.09407523274421692,
    0.049192123115062714,
    0.05336914211511612,
    0.059572841972112656,
    0.058667831122875214,
    0.05413154140114784,
    0.04347118362784386,
    0.05269097536802292,
    0.027818525210022926,
    0.0502236932516098,
    -0.01919364556670189,
    0.051973242312669754,
    0.006289381068199873,
    0.02170877903699875,
    0.05919693410396576,
    0.048069652169942856,
    0.03294661268591881,
    0.04004021733999252,
    0.014796585775911808,
    -0.0115040959790349,
    0.05006280541419983,
    0.10161030292510986,
    0.02352386899292469,
    0.04396252706646919,
    0.021815525367856026,
    0.026368871331214905,
    0.02299046702682972,
    0.02382810227572918,
    0.02211575023829937,
    0.021913623437285423,
    0.021094918251037598,
    0.020787324756383896,
    0.020559795200824738,
    0.01982422173023224,
    0.01951872929930687,
    0.019022200256586075,
    0.018507424741983414,
    0.018253885209560394,
    0.01787342131137848,
    0.017640581354498863,
    0.01687212474644184,
    0.017022427171468735,
    0.016161462292075157,
    0.017617810517549515,
    0.015405392274260521,
    0.014583062380552292,
    0.016538964584469795,
    0.01785600371658802,
    0.014865529723465443,
    0.015696464106440544,
    0.01566978543996811,
    0.017236877232789993,
    0.021969854831695557,
    -0.011052245274186134,
    -0.000812496233265847,
    0.012052458710968494,
    0.004149705171585083,
    0.014021171256899834,
    0.013071797788143158,
    0.01485608983784914,
    0.009315772913396358,
    0.01262175478041172,
    0.010236813686788082,
    0.01246358547359705,
    0.009217197075486183,
    0.012097411789000034,
    0.006782224867492914,
    0.007647289894521236,
    0.004138629883527756,
    0.009302712976932526,
    -0.021487632766366005,
    -0.11582650989294052,
    0.030328072607517242,
    -0.05873299390077591,
    -0.007714421022683382,
    0.029571712017059326,
    0.017404330894351006,
    0.007703028153628111,
    0.011953819543123245,
    0.011716864071786404,
    0.009478610008955002,
    0.010900292545557022,
    0.009987298399209976,
    0.01082491036504507,
    0.01449180580675602,
    0.006974926218390465,
    0.0055830045603215694,
    0.007448642048984766,
    0.008093137294054031,
    0.007519835140556097,
    0.012189880944788456,
    0.009236574172973633,
    0.010129119269549847,
    0.009789781644940376,
    0.008328748866915703,
    0.007847148925065994,
    0.007593897171318531,
    0.009233280085027218,
    0.008665774017572403,
    0.005958073772490025,
    0.008800125680863857,
    0.00689544016495347,
    0.008133584633469582,
    0.00542412931099534,
    0.0064290836453437805,
    0.007092669606208801,
    0.007611329201608896,
    0.007773717865347862,
    0.006039245054125786,
    0.006752858404070139,
    0.006400465499609709,
    0.007819151505827904,
    0.005957874469459057,
    0.008689505979418755,
    0.005347784608602524,
    0.008221324533224106,
    0.004879363812506199,
    0.006954500451683998,
    0.004686504602432251,
    0.00606571976095438,
    0.004868720658123493,
    0.008616825565695763,
    0.006228562910109758,
    0.007089129649102688,
    0.004991310648620129,
    0.004471842665225267,
    0.005051021464169025,
    0.004811757244169712,
    0.005583899561315775,
    0.003834914183244109,
    0.003598593408241868,
    0.003436826402321458,
    0.007690136320888996,
    0.007173399440944195,
    0.003898206865414977,
    0.00795290432870388,
    0.003560879034921527,
    0.0015633482253178954,
    0.004691171459853649,
    0.0033454219810664654,
    0.002201977651566267,
    0.003358715446665883,
    0.003913119900971651,
    0.00366985029540956,
    0.0038341134786605835,
    0.003754695877432823,
    0.003549035172909498,
    0.0034777927212417126,
    0.004151250701397657,
    0.0032843907829374075,
    0.0036280741915106773,
    0.0034293641801923513,
    0.0037981343921273947,
    0.003605320118367672,
    0.0035702765453606844,
    0.0032565852161496878,
    0.003581857308745384,
    0.003452590899541974,
    0.0031830030493438244,
    0.0031308161560446024,
    0.003168769646435976,
    0.003248471301048994,
    0.0030853047501295805,
    0.003064783290028572,
    0.0030258235055953264,
    0.003006843850016594,
    0.0029772589914500713,
    0.0028848371002823114,
    0.002861845539882779,
    0.002809325698763132,
    0.002767738187685609,
    0.0027130928356200457,
    0.0026981316041201353,
    0.0026356265880167484,
    0.002594029763713479,
    0.0025496354792267084,
    0.0025086775422096252,
    0.0024642320349812508,
    0.002426180988550186,
    0.0023824062664061785,
    0.0023404727689921856,
    0.002299846149981022,
    0.002257879124954343,
    0.002216038526967168,
    0.002182832919061184,
    0.002138714771717787,
    0.0020965454168617725,
    0.0020568417385220528,
    0.002015555975958705,
    0.0019742229487746954,
    0.0019357356941327453,
    0.001896112342365086,
    0.0018560552271082997,
    0.0018166668014600873,
    0.001778132515028119,
    0.0017389915883541107,
    0.0016996278427541256,
    0.001661416026763618,
    0.0016225191066041589,
    0.0015842837747186422,
    0.001545493258163333,
    0.0015072152018547058,
    0.001469536335207522,
    0.0014306644443422556,
    0.001393923768773675,
    0.0013548876158893108,
    0.0013180007226765156,
    0.0012796694645658135,
    0.0012424042215570807,
    0.0012044224422425032,
    0.0011668613879010081,
    0.0011318946490064263,
    0.0010936807375401258,
    0.001059835427440703,
    0.00101520586758852,
    0.000984514714218676,
    0.0009422375005669892,
    0.0009051006054505706,
    0.0008688165689818561,
    0.000835888902656734,
    0.0007964043179526925,
    0.0007591552566736937,
    0.0007220158004201949,
    0.0006884903414174914,
    0.000649545225314796,
    0.000615015160292387,
    0.0005771868163719773,
    0.0005425234558060765,
    0.0005057844682596624,
    0.00046936928993090987,
    0.00043404396274127066,
    0.0003964655043091625,
    0.00036154271219857037,
    0.00032509685843251646,
    0.0002872466866392642,
    0.0002529642661102116,
    0.0002152013621525839,
    0.00018019504204858094,
    0.00014435929188039154,
    0.00010835941066034138,
    0.00007186409493442625,
    0.00003627773548942059,
    0,
    -0.00003627773548942059,
    -0.00007186409493442625,
    -0.00010835941066034138,
    -0.00014435929188039154,
    -0.00018019504204858094,
    -0.0002152013621525839,
    -0.0002529642661102116,
    -0.0002872466866392642,
    -0.00032509685843251646,
    -0.00036154271219857037,
    -0.0003964655043091625,
    -0.00043404396274127066,
    -0.00046936928993090987,
    -0.0005057844682596624,
    -0.0005425234558060765,
    -0.0005771868163719773,
    -0.000615015160292387,
    -0.000649545225314796,
    -0.0006884903414174914,
    -0.0007220158004201949,
    -0.0007591552566736937,
    -0.0007964043179526925,
    -0.000835888902656734,
    -0.0008688165689818561,
    -0.0009051006054505706,
    -0.0009422375005669892,
    -0.000984514714218676,
    -0.00101520586758852,
    -0.001059835427440703,
    -0.0010936807375401258,
    -0.0011318946490064263,
    -0.0011668613879010081,
    -0.0012044224422425032,
    -0.0012424042215570807,
    -0.0012796694645658135,
    -0.0013180007226765156,
    -0.0013548876158893108,
    -0.001393923768773675,
    -0.0014306644443422556,
    -0.001469536335207522,
    -0.0015072152018547058,
    -0.001545493258163333,
    -0.0015842837747186422,
    -0.0016225191066041589,
    -0.001661416026763618,
    -0.0016996278427541256,
    -0.0017389915883541107,
    -0.001778132515028119,
    -0.0018166668014600873,
    -0.0018560552271082997,
    -0.001896112342365086,
    -0.0019357356941327453,
    -0.0019742229487746954,
    -0.002015555975958705,
    -0.0020568417385220528,
    -0.0020965454168617725,
    -0.002138714771717787,
    -0.002182832919061184,
    -0.002216038526967168,
    -0.002257879124954343,
    -0.002299846149981022,
    -0.0023404727689921856,
    -0.0023824062664061785,
    -0.002426180988550186,
    -0.0024642320349812508,
    -0.0025086775422096252,
    -0.0025496354792267084,
    -0.002594029763713479,
    -0.0026356265880167484,
    -0.0026981316041201353,
    -0.0027130928356200457,
    -0.002767738187685609,
    -0.002809325698763132,
    -0.002861845539882779,
    -0.0028848371002823114,
    -0.0029772589914500713,
    -0.003006843850016594,
    -0.0030258235055953264,
    -0.003064783290028572,
    -0.0030853047501295805,
    -0.003248471301048994,
    -0.003168769646435976,
    -0.0031308161560446024,
    -0.0031830030493438244,
    -0.003452590899541974,
    -0.003581857308745384,
    -0.0032565852161496878,
    -0.0035702765453606844,
    -0.003605320118367672,
    -0.0037981343921273947,
    -0.0034293641801923513,
    -0.0036280741915106773,
    -0.0032843907829374075,
    -0.004151250701397657,
    -0.0034777927212417126,
    -0.003549035172909498,
    -0.003754695877432823,
    -0.0038341134786605835,
    -0.00366985029540956,
    -0.003913119900971651,
    -0.003358715446665883,
    -0.002201977651566267,
    -0.0033454219810664654,
    -0.004691171459853649,
    -0.0015633482253178954,
    -0.003560879034921527,
    -0.00795290432870388,
    -0.003898206865414977,
    -0.007173399440944195,
    -0.007690136320888996,
    -0.003436826402321458,
    -0.003598593408241868,
    -0.003834914183244109,
    -0.005583899561315775,
    -0.004811757244169712,
    -0.005051021464169025,
    -0.004471842665225267,
    -0.004991310648620129,
    -0.007089129649102688,
    -0.006228562910109758,
    -0.008616825565695763,
    -0.004868720658123493,
    -0.00606571976095438,
    -0.004686504602432251,
    -0.006954500451683998,
    -0.004879363812506199,
    -0.008221324533224106,
    -0.005347784608602524,
    -0.008689505979418755,
    -0.005957874469459057,
    -0.007819151505827904,
    -0.006400465499609709,
    -0.006752858404070139,
    -0.006039245054125786,
    -0.007773717865347862,
    -0.007611329201608896,
    -0.007092669606208801,
    -0.0064290836453437805,
    -0.00542412931099534,
    -0.008133584633469582,
    -0.00689544016495347,
    -0.008800125680863857,
    -0.005958073772490025,
    -0.008665774017572403,
    -0.009233280085027218,
    -0.007593897171318531,
    -0.007847148925065994,
    -0.008328748866915703,
    -0.009789781644940376,
    -0.010129119269549847,
    -0.009236574172973633,
    -0.012189880944788456,
    -0.007519835140556097,
    -0.008093137294054031,
    -0.007448642048984766,
    -0.0055830045603215694,
    -0.006974926218390465,
    -0.01449180580675602,
    -0.01082491036504507,
    -0.009987298399209976,
    -0.010900292545557022,
    -0.009478610008955002,
    -0.011716864071786404,
    -0.011953819543123245,
    -0.007703028153628111,
    -0.017404330894351006,
    -0.029571712017059326,
    0.007714421022683382,
    0.05873299390077591,
    -0.030328072607517242,
    0.11582650989294052,
    0.021487632766366005,
    -0.009302712976932526,
    -0.004138629883527756,
    -0.007647289894521236,
    -0.006782224867492914,
    -0.012097411789000034,
    -0.009217197075486183,
    -0.01246358547359705,
    -0.010236813686788082,
    -0.01262175478041172,
    -0.009315772913396358,
    -0.01485608983784914,
    -0.013071797788143158,
    -0.014021171256899834,
    -0.004149705171585083,
    -0.012052458710968494,
    0.000812496233265847,
    0.011052245274186134,
    -0.021969854831695557,
    -0.017236877232789993,
    -0.01566978543996811,
    -0.015696464106440544,
    -0.014865529723465443,
    -0.01785600371658802,
    -0.016538964584469795,
    -0.014583062380552292,
    -0.015405392274260521,
    -0.017617810517549515,
    -0.016161462292075157,
    -0.017022427171468735,
    -0.01687212474644184,
    -0.017640581354498863,
    -0.01787342131137848,
    -0.018253885209560394,
    -0.018507424741983414,
    -0.019022200256586075,
    -0.01951872929930687,
    -0.01982422173023224,
    -0.020559795200824738,
    -0.020787324756383896,
    -0.021094918251037598,
    -0.021913623437285423,
    -0.02211575023829937,
    -0.02382810227572918,
    -0.02299046702682972,
    -0.026368871331214905,
    -0.021815525367856026,
    -0.04396252706646919,
    -0.02352386899292469,
    -0.10161030292510986,
    -0.05006280541419983,
    0.0115040959790349,
    -0.014796585775911808,
    -0.04004021733999252,
    -0.03294661268591881,
    -0.048069652169942856,
    -0.05919693410396576,
    -0.02170877903699875,
    -0.006289381068199873,
    -0.051973242312669754,
    0.01919364556670189,
    -0.0502236932516098,
    -0.027818525210022926,
    -0.05269097536802292,
    -0.04347118362784386,
    -0.05413154140114784,
    -0.058667831122875214,
    -0.059572841972112656,
    -0.05336914211511612,
    -0.049192123115062714,
    -0.09407523274421692,
    -0.06338734179735184,
    -0.121039979159832,
    -0.16816014051437378,
    -0.19817514717578888,
    -0.02602989412844181,
    -0.1983414888381958,
    0.01113172434270382,
    -0.41217106580734253,
    0.1622326523065567,
    -0.2421717494726181,
    0.039897620677948,
    -0.8021179437637329,
    0.12676763534545898,
  ]),
  length: 512,
};

var expectedPowerSpectrumOutput = new Float32Array([
  0.03867155686020851,
  0.055086031556129456,
  0.7779644131660461,
  0.06080057471990585,
  0.2921719253063202,
  0.029600320383906364,
  0.2367316037416458,
  0.011499044485390186,
  0.04452301189303398,
  0.04950142279267311,
  0.045106325298547745,
  0.051827725023031235,
  0.014705364592373371,
  0.0043609668500721455,
  0.00958662386983633,
  0.0032703978940844536,
  0.004120319616049528,
  0.0055340928956866264,
  0.003577437251806259,
  0.002971795154735446,
  0.0020197785925120115,
  0.002863472793251276,
  0.0007963784737512469,
  0.0025879195891320705,
  0.0007664472213946283,
  0.003038821741938591,
  0.005875532049685717,
  0.0006002979935146868,
  0.005016138777136803,
  0.0023229194339364767,
  0.0011358610354363918,
  0.0023258968722075224,
  0.0008628804353065789,
  0.002031709300354123,
  0.0036465467419475317,
  0.010334047488868237,
  0.0009856525575742126,
  0.002210495062172413,
  0.0006603358197025955,
  0.0007977619534358382,
  0.0006695748306810856,
  0.0006587866810150445,
  0.0005810929578728974,
  0.000569153402466327,
  0.0005284546641632915,
  0.0005146735929884017,
  0.0004904810339212418,
  0.00045658971066586673,
  0.00044485044782049954,
  0.00041788251837715507,
  0.00039485160959884524,
  0.0003826647880487144,
  0.0003678083885461092,
  0.00035917721106670797,
  0.0003303621197119355,
  0.00033130490919575095,
  0.0003041547315660864,
  0.0003852571244351566,
  0.0002587233029771596,
  0.00024699370260350406,
  0.0003218324272893369,
  0.0003292292822152376,
  0.00024213717551901937,
  0.00025492339045740664,
  0.0002517249376978725,
  0.00029744187486357987,
  0.0004894566955044866,
  0.00016466120723634958,
  0.000005619402600132162,
  0.00041415455052629113,
  0.000017243226466234773,
  0.00033687808900140226,
  0.0003166702517773956,
  0.0002314944431418553,
  0.00021842840942554176,
  0.00016347545897588134,
  0.0003011332009918988,
  0.0002094832161674276,
  0.0001376875734422356,
  0.00016096570470836014,
  0.00010561885574134067,
  0.00007477594772353768,
  0.000017524980648886412,
  0.00018753306358121336,
  0.0004627859452739358,
  0.019479725509881973,
  0.0014632339589297771,
  0.011392705142498016,
  0.0002952598442789167,
  0.002621668390929699,
  0.00217043817974627,
  0.00011281749175395817,
  0.0002440532116452232,
  0.00029155818629078567,
  0.00018621915660332888,
  0.00023154956579674035,
  0.00038069364381954074,
  0.00012335799692664295,
  0.00021724864200223237,
  0.00011633306712610647,
  0.0000810220735729672,
  0.00011627597996266559,
  0.00015435981913469732,
  0.00011075224756496027,
  0.00023204121680464596,
  0.00016125976981129497,
  0.00016212768969126046,
  0.0001844156940933317,
  0.00010478137119207531,
  0.00015369664470199496,
  0.00008935948426369578,
  0.00010879309411393479,
  0.00012111470277886838,
  0.00008374268509214744,
  0.0001489239075453952,
  0.0000822411966510117,
  0.00009430522186448798,
  0.0000771188351791352,
  0.00006772424967493862,
  0.00010531163570703939,
  0.00010478979675099254,
  0.00010412650590296835,
  0.00006883184687467292,
  0.0001193125790450722,
  0.0000894137192517519,
  0.00012775821960531175,
  0.00006736916839145124,
  0.00014868532889522612,
  0.00004484706005314365,
  0.00014574534725397825,
  0.00003765391375054605,
  0.00009720102389110252,
  0.00006441951700253412,
  0.00008998843986773863,
  0.00007020658085821196,
  0.00011746898962883279,
  0.00008526955934939906,
  0.000100068369647488,
  0.00004829016688745469,
  0.00007368881779257208,
  0.00007512330921599641,
  0.00008835303015075624,
  0.00007996436761459336,
  0.00006192046566866338,
  0.000054877953516552225,
  0.00007055088644847274,
  0.0000974265713011846,
  0.00012617673201020807,
  0.00003344476499478333,
  0.00008054394129430875,
  0.0000386640676879324,
  0.000011706914847309235,
  0.00005620744559564628,
  0.00004536424239631742,
  0.00004435844675754197,
  0.00005275526928016916,
  0.00006510251114377752,
  0.000051501621783245355,
  0.00005916160444030538,
  0.00005950031481916085,
  0.0000619562779320404,
  0.000058098961744690314,
  0.00006302431575022638,
  0.00005558686098083854,
  0.000057687164371600375,
  0.000054152180382516235,
  0.000056959739595185965,
  0.00005478786624735221,
  0.000056555225455667824,
  0.0000545124858035706,
  0.00005343957673176192,
  0.000053162806580075994,
  0.00005283499194774777,
  0.00005073206193628721,
  0.00005176239210413769,
  0.000052732659241883084,
  0.000050749778893077746,
  0.00005095661254017614,
  0.000050615584768820554,
  0.00005041175973019563,
  0.00005035139110987075,
  0.00004970029476680793,
  0.00004939485006616451,
  0.0000492754224978853,
  0.00004882015855400823,
  0.000048522928409511223,
  0.00004851776611758396,
  0.00004808378071174957,
  0.00004788830119650811,
  0.00004754679321194999,
  0.00004734942194772884,
  0.00004706543404608965,
  0.00004686306056100875,
  0.00004659954356611706,
  0.00004638067548512481,
  0.0000461314084532205,
  0.00004594491110765375,
  0.00004570136297843419,
  0.000045451601181412116,
  0.00004529534999164753,
  0.00004501802322920412,
  0.000044843174691777676,
  0.00004463590812520124,
  0.00004446181992534548,
  0.000044269425416132435,
  0.000044099517253926024,
  0.000043918098526773974,
  0.00004375124990474433,
  0.00004358419027994387,
  0.00004341606472735293,
  0.00004325625559431501,
  0.00004311650263844058,
  0.00004296279075788334,
  0.00004281027213437483,
  0.000042662879423005506,
  0.000042526982724666595,
  0.00004239721965859644,
  0.000042266419768566266,
  0.000042139890865655616,
  0.000042014664359157905,
  0.00004190728941466659,
  0.000041795155993895605,
  0.00004164962228969671,
  0.00004156548311584629,
  0.000041452221921645105,
  0.00004138466829317622,
  0.000041235452954424545,
  0.00004117738353670575,
  0.00004103156243218109,
  0.00004099567377124913,
  0.0000408665910072159,
  0.000040781640564091504,
  0.000040702696423977613,
  0.00004071614966960624,
  0.000040557879401603714,
  0.00004057771366205998,
  0.00004042521686642431,
  0.000040454877307638526,
  0.00004033196091768332,
  0.000040314440411748365,
  0.00004025205998914316,
  0.00004019767220597714,
  0.00004014767910121009,
  0.000040113944123731926,
  0.00004006719245808199,
  0.00004002838977612555,
  0.00003999406908405945,
  0.00003997508611064404,
  0.000039950125938048586,
  0.000039922357245814055,
  0.00003990518962382339,
  0.000039885668229544535,
  0.00003987615491496399,
  0.000039878399547887966,
  0.00003984460636274889,
  0.00003985162766184658,
]);

var barkScale = new Float32Array([
  0,
  0.8502324223518372,
  1.694183111190796,
  2.5250110626220703,
  3.336550712585449,
  4.123549461364746,
  4.881809711456299,
  5.60823392868042,
  6.300786972045898,
  6.9583940505981445,
  7.580804347991943,
  8.168436050415039,
  8.722225189208984,
  9.243483543395996,
  9.733778953552246,
  10.194833755493164,
  10.628447532653809,
  11.036436080932617,
  11.420586585998535,
  11.782628059387207,
  12.124208450317383,
  12.446884155273438,
  12.752114295959473,
  13.041257858276367,
  13.315570831298828,
  13.576218605041504,
  13.824270248413086,
  14.060709953308105,
  14.286441802978516,
  14.502294540405273,
  14.709027290344238,
  14.907334327697754,
  15.097854614257812,
  15.281168937683105,
  15.457812309265137,
  15.628273963928223,
  15.793001174926758,
  15.95240592956543,
  16.106861114501953,
  16.256715774536133,
  16.40228271484375,
  16.543851852416992,
  16.68168830871582,
  16.816038131713867,
  16.947120666503906,
  17.075143814086914,
  17.20029067993164,
  17.322736740112305,
  17.44263458251953,
  17.560131072998047,
  17.675357818603516,
  17.788429260253906,
  17.899459838867188,
  18.008546829223633,
  18.115779876708984,
  18.221240997314453,
  18.32500648498535,
  18.427141189575195,
  18.5277099609375,
  18.62676239013672,
  18.72435188293457,
  18.82052230834961,
  18.915313720703125,
  19.008760452270508,
  19.100894927978516,
  19.191747665405273,
  19.281343460083008,
  19.36970329284668,
  19.45684814453125,
  19.542797088623047,
  19.627565383911133,
  19.71116828918457,
  19.79361915588379,
  19.87492561340332,
  19.955102920532227,
  20.03415870666504,
  20.112102508544922,
  20.188940048217773,
  20.26468276977539,
  20.339336395263672,
  20.412906646728516,
  20.485403060913086,
  20.55683135986328,
  20.627199172973633,
  20.69651222229004,
  20.76477813720703,
  20.83200454711914,
  20.89820098876953,
  20.96337127685547,
  21.02752685546875,
  21.090675354003906,
  21.15282440185547,
  21.2139835357666,
  21.27416229248047,
  21.333370208740234,
  21.391616821289062,
  21.44891357421875,
  21.505268096923828,
  21.56069564819336,
  21.615201950073242,
  21.66880226135254,
  21.721508026123047,
  21.773326873779297,
  21.824275970458984,
  21.87436294555664,
  21.923601150512695,
  21.972003936767578,
  22.01958465576172,
  22.06635284423828,
  22.112321853637695,
  22.15750503540039,
  22.201915740966797,
  22.24556541442871,
  22.28846549987793,
  22.330629348754883,
  22.372072219848633,
  22.41280174255371,
  22.452835083007812,
  22.4921817779541,
  22.530853271484375,
  22.568864822387695,
  22.606224060058594,
  22.642948150634766,
  22.679046630859375,
  22.714529037475586,
  22.749408721923828,
  22.78369903564453,
  22.817407608032227,
  22.850547790527344,
  22.88313102722168,
  22.915164947509766,
  22.946664810180664,
  22.977636337280273,
  23.008092880249023,
  23.038043975830078,
  23.06749725341797,
  23.096466064453125,
  23.124958038330078,
  23.152984619140625,
  23.180551528930664,
  23.207670211791992,
  23.23434829711914,
  23.260595321655273,
  23.286420822143555,
  23.311830520629883,
  23.336835861206055,
  23.36144256591797,
  23.38566017150879,
  23.409494400024414,
  23.432954788208008,
  23.45604705810547,
  23.47878074645996,
  23.501161575317383,
  23.523195266723633,
  23.544889450073242,
  23.566253662109375,
  23.587289810180664,
  23.608007431030273,
  23.6284122467041,
  23.648509979248047,
  23.668306350708008,
  23.687808990478516,
  23.707019805908203,
  23.725948333740234,
  23.744598388671875,
  23.762975692749023,
  23.781084060668945,
  23.798931121826172,
  23.81652069091797,
  23.8338565826416,
  23.85094451904297,
  23.86779022216797,
  23.884397506713867,
  23.90077018737793,
  23.916912078857422,
  23.932830810546875,
  23.94852638244629,
  23.964006423950195,
  23.979272842407227,
  23.99432945251465,
  24.00918197631836,
  24.023832321166992,
  24.038286209106445,
  24.05254364013672,
  24.066612243652344,
  24.08049201965332,
  24.09419059753418,
  24.10770606994629,
  24.12104606628418,
  24.13421058654785,
  24.14720344543457,
  24.160030364990234,
  24.172691345214844,
  24.185190200805664,
  24.197528839111328,
  24.209712982177734,
  24.22174072265625,
  24.233619689941406,
  24.24534797668457,
  24.25693130493164,
  24.26837158203125,
  24.27967071533203,
  24.290830612182617,
  24.30185317993164,
  24.312744140625,
  24.323501586914062,
  24.334129333496094,
  24.34463119506836,
  24.355005264282227,
  24.365259170532227,
  24.375389099121094,
  24.385400772094727,
  24.395296096801758,
  24.405075073242188,
  24.41474151611328,
  24.42429542541504,
  24.433738708496094,
  24.44307518005371,
  24.45230484008789,
  24.461429595947266,
  24.47045135498047,
  24.479372024536133,
  24.488191604614258,
  24.49691390991211,
  24.505538940429688,
  24.514068603515625,
  24.522504806518555,
  24.53084945678711,
  24.53910255432129,
  24.547266006469727,
  24.555341720581055,
  24.563329696655273,
  24.57123374938965,
  24.579051971435547,
  24.586788177490234,
  24.594440460205078,
  24.602014541625977,
  24.609508514404297,
  24.616924285888672,
  24.624263763427734,
  24.631526947021484,
  24.638713836669922,
  24.645828247070312,
  24.652870178222656,
  24.659839630126953,
  24.66674041748047,
  24.67357063293457,
  24.680330276489258,
  24.68702507019043,
  24.69365119934082,
  24.700212478637695,
  24.706708908081055,
  24.71314239501953,
  24.719511032104492,
  24.725818634033203,
  24.732065200805664,
  24.738250732421875,
  24.74437713623047,
  24.750444412231445,
  24.756454467773438,
  24.762407302856445,
  24.76830291748047,
  24.774141311645508,
  24.77992820739746,
  24.78565788269043,
  24.791336059570312,
  24.796960830688477,
  24.802532196044922,
  24.808053970336914,
  24.81352424621582,
  24.818944931030273,
  24.824316024780273,
  24.82963752746582,
  24.83491325378418,
  24.840139389038086,
  24.845319747924805,
  24.850452423095703,
  24.855539321899414,
  24.86058235168457,
  24.865581512451172,
  24.870534896850586,
  24.875444412231445,
  24.880311965942383,
  24.8851375579834,
  24.889921188354492,
  24.894662857055664,
  24.899364471435547,
  24.90402603149414,
  24.908647537231445,
  24.91322898864746,
  24.91777229309082,
  24.92227554321289,
  24.926742553710938,
  24.931171417236328,
  24.935564041137695,
  24.93992042541504,
  24.944238662719727,
  24.948522567749023,
  24.95277214050293,
  24.956985473632812,
  24.961164474487305,
  24.965309143066406,
  24.969419479370117,
  24.973499298095703,
  24.977542877197266,
  24.981555938720703,
  24.985536575317383,
  24.989486694335938,
  24.9934024810791,
  24.997289657592773,
  25.001144409179688,
  25.00497055053711,
  25.008766174316406,
  25.012531280517578,
  25.016267776489258,
  25.019975662231445,
  25.02365493774414,
  25.02730369567871,
  25.030925750732422,
  25.034521102905273,
  25.038087844848633,
  25.041627883911133,
  25.045141220092773,
  25.048627853393555,
  25.052087783813477,
  25.055522918701172,
  25.058931350708008,
  25.062314987182617,
  25.065673828125,
  25.069005966186523,
  25.072315216064453,
  25.075599670410156,
  25.078859329223633,
  25.082096099853516,
  25.085308074951172,
  25.088499069213867,
  25.091665267944336,
  25.09480857849121,
  25.097929000854492,
  25.101028442382812,
  25.10410499572754,
  25.107158660888672,
  25.110191345214844,
  25.113203048706055,
  25.116193771362305,
  25.11916160583496,
  25.12211036682129,
  25.125038146972656,
  25.127944946289062,
  25.13083267211914,
  25.133699417114258,
  25.136547088623047,
  25.139373779296875,
  25.142183303833008,
  25.14497184753418,
  25.147741317749023,
  25.150493621826172,
  25.15322494506836,
  25.15593910217285,
  25.15863609313965,
  25.161312103271484,
  25.163972854614258,
  25.166614532470703,
  25.169239044189453,
  25.171846389770508,
  25.174436569213867,
  25.1770076751709,
  25.179563522338867,
  25.182104110717773,
  25.18462562561035,
  25.187131881713867,
  25.189620971679688,
  25.192094802856445,
  25.194551467895508,
  25.19699478149414,
  25.199420928955078,
  25.20182991027832,
  25.204225540161133,
  25.206605911254883,
  25.208969116210938,
  25.211318969726562,
  25.213655471801758,
  25.215974807739258,
  25.218280792236328,
  25.220571517944336,
  25.222848892211914,
  25.22511100769043,
  25.227359771728516,
  25.229595184326172,
  25.231815338134766,
  25.23402214050293,
  25.236215591430664,
  25.23839569091797,
  25.240564346313477,
  25.242717742919922,
  25.244857788085938,
  25.246986389160156,
  25.249099731445312,
  25.251203536987305,
  25.253292083740234,
  25.255369186401367,
  25.25743293762207,
  25.259485244750977,
  25.261526107788086,
  25.263553619384766,
  25.26556968688965,
  25.267574310302734,
  25.269567489624023,
  25.271547317504883,
  25.273517608642578,
  25.275474548339844,
  25.277420043945312,
  25.279356002807617,
  25.281278610229492,
  25.283191680908203,
  25.285093307495117,
  25.286985397338867,
  25.288864135742188,
  25.290733337402344,
  25.292593002319336,
  25.29444122314453,
  25.29627799987793,
  25.298105239868164,
  25.299922943115234,
  25.301729202270508,
  25.303525924682617,
  25.30531120300293,
  25.30708885192871,
  25.308855056762695,
  25.310611724853516,
  25.312358856201172,
  25.314096450805664,
  25.315824508666992,
  25.317543029785156,
  25.319252014160156,
  25.320951461791992,
  25.322641372680664,
  25.324323654174805,
  25.32599639892578,
  25.32765769958496,
  25.329313278198242,
  25.330957412719727,
  25.33259391784668,
  25.3342227935791,
  25.335840225219727,
  25.337451934814453,
  25.339052200317383,
  25.340646743774414,
  25.34222984313965,
  25.343807220458984,
  25.345375061035156,
  25.346935272216797,
  25.348485946655273,
  25.35003089904785,
  25.351566314697266,
  25.35309410095215,
  25.354612350463867,
  25.356124877929688,
  25.357629776000977,
  25.3591251373291,
  25.360612869262695,
  25.36209487915039,
  25.363567352294922,
  25.365034103393555,
  25.366491317749023,
  25.367942810058594,
  25.369386672973633,
  25.37082290649414,
  25.372251510620117,
  25.373672485351562,
  25.37508773803711,
  25.376495361328125,
  25.37789535522461,
  25.379289627075195,
  25.38067626953125,
  25.382055282592773,
  25.3834285736084,
  25.384794235229492,
  25.386154174804688,
  25.38750648498535,
  25.388853073120117,
  25.39019203186035,
  25.391525268554688,
  25.392852783203125,
  25.39417266845703,
  25.395484924316406,
  25.396793365478516,
  25.398094177246094,
  25.399389266967773,
  25.400676727294922,
  25.401958465576172,
  25.403234481811523,
  25.404504776000977,
  25.40576934814453,
  25.407026290893555,
  25.408279418945312,
  25.40952491760254,
  25.410764694213867,
  25.411998748779297,
  25.41322898864746,
  25.414451599121094,
  25.415668487548828,
  25.416879653930664,
  25.4180850982666,
  25.41928482055664,
  25.42047882080078,
  25.421669006347656,
  25.4228515625,
  25.424030303955078,
  25.425203323364258,
  25.426368713378906,
  25.427532196044922,
]);

const expectedChromagramOutput = new Float32Array([
  0.889173501932042,
  0.8377149437424725,
  0.7983608438722133,
  0.8340835109903056,
  0.9257658376982487,
  0.9697310997078421,
  1,
  0.8781674865696717,
  0.7889747445705728,
  0.7880426774703064,
  0.9250473589362254,
  0.8824577772499042,
]);

export default {
  VALID_SIGNAL: validSignal,
  VALID_AMPLITUDE_SPECTRUM: validAmpSpec,
  VALID_FFT: validFFT,
  VALID_BARK_SCALE: barkScale,
  EXPECTED_POWER_SPECTRUM_OUTPUT: expectedPowerSpectrumOutput,
  EXPECTED_CHROMAGRAM_OUTPUT: expectedChromagramOutput,
};
